home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
faq
/
amyfaqg.lha
/
AmigaFAQ
/
src
/
convert.c
< prev
Wrap
C/C++ Source or Header
|
1994-07-28
|
754b
|
44 lines
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void main(int argc, char *argv[])
{ int c;
while ((c = getchar()) != EOF)
{ if (c == (unsigned char) '\344')
{ putchar('a');
putchar('e');
}
else if (c == (unsigned char) '\366')
{ putchar('o');
putchar('e');
}
else if (c == (unsigned char) '\374')
{ putchar('u');
putchar('e');
}
else if (c == (unsigned char) '\304')
{ putchar('A');
putchar('e');
}
else if (c == (unsigned char) '\326')
{ putchar('O');
putchar('e');
}
else if (c == (unsigned char) '\334')
{ putchar('U');
putchar('e');
}
else if (c == (unsigned char) '\337')
{ putchar('s');
putchar('s');
}
else
{ putchar(c);
}
}
}